﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Minotaur.App.Domains.Model.Role
{
    /// <summary>
    /// 角色权限表
    /// </summary>
    [SugarTable("RolePermission")]
    public class RolePermission : EntityBase
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(ColumnName = "autoid", IsIdentity = true, IsPrimaryKey = true)]
        public long Autoid { get; set; }

        /// <summary>
        /// 角色ID
        /// </summary>
        [SugarColumn(ColumnName = "roleid")]
        public long? RoleId { get; set; }

        /// <summary>
        /// 权限ID
        /// </summary>
        [SugarColumn(ColumnName = "permissionid")]
        public long? PermissionId { get; set; }
    }
}
